import {designPage} from "plain-design-composition";
import {PlcDate, PlcInput, PlTablePro, useTableOption} from "plain-design";
import React from "react";

export default designPage(() => {
    const option = useTableOption({
        title: '选项值',
        url: '/ov',
        fill: true,
    })

    return () => <>
        <div style={{height: '100%', boxSizing: 'border-box', backgroundColor: 'white'}}>
            <PlTablePro option={option}>
                <PlcInput title="显示值" field="name"/>
                <PlcInput title="代码" field="code"/>
                <PlcInput title="类型" field="type"/>
                <PlcDate title="创建时间" field="createdAt" hideInForm width={180} editable={false} datetime/>
                <PlcInput title="说明" field="comment"/>
            </PlTablePro>
        </div>
    </>
})
